<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/admin/css/home.css">
</head>
<style>
    html,body{
        width:100%;
        height:100%;
        margin:0;
        padding:0;
    }
</style>
<body>
<div id="container" style="width:100%;height:100%;">
    <div id="header" style="background-color:#FFA500;">
        <%@include file="top.jsp"%>
    </div>
    <div id="menu" style="background-color:#EEEEEE;float:left;width:15%;height:70%;">
        <jsp:include page="left.jsp" /></div>
    <div class="nav">
<%--        <h4>系统首页</h4>--%>
    </div>
    <div id="content" style="width:85%;height:100%;float:left;">
        <%
            String s = request.getParameter("item");
            if (s != null && s.equals("product_list")) {
                %>
                <jsp:include page='/admin/products/list.jsp' />
                <%
            } else if ( s != null && s.equals("product_add")) {
                %>
                <jsp:include page='/admin/products/add.jsp'/>
                <%
            } else if ( s != null && s.equals("download")) {
                %>
                 <jsp:include page='/admin/products/download.jsp'/>
                <%
            } else if ( s != null && s.equals("orders")) {
                %>
                <jsp:include page='/admin/orders/orderList.jsp'/>
                <%
            } else if ( s != null && s.equals("view")) {
                %>
                <jsp:include page='/admin/orders/orderView.jsp'/>
                <%
            } else if ( s != null && s.equals("notice")) {
                %>
                <jsp:include page='/admin/notice/noticeList.jsp'/>
                <%
            } else if ( s != null && s.equals("notice_update")) {
                %>
                <jsp:include page='/admin/notice/editNotice.jsp'/>
                <%
            } else if ( s != null && s.equals("notice_add")) {
                %>
                <jsp:include page='/admin/notice/addNotice.jsp'/>
                <%
            } else if ( s != null && s.equals("user_list")) {
                %>
                <jsp:include page='/admin/user/userList.jsp'/>
                <%
            } else if ( s != null && s.equals("user_details")) {
                %>
                <jsp:include page='/admin/user/userDetails.jsp'/>
                <%
            } else if (s != null && s.equals("img_list")) {
                %>
                <jsp:include page='/admin/imgs/imgList.jsp'/>
                <%
            } else {
                %>
                <jsp:include page='/admin/login/welcome.jsp'/>
                <%
            }
        %>
    </div>
    <div id="footer" style="height:20%;" >
        <%@include file="bottom.jsp"%>
    </div>
</div>
</body>
</html>
